package com.example.second.queue;


import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//队列初始化
@Configuration
public class MQconfig {

    @Bean
    public Queue getqueue(){
        return new Queue("order_queue",true);
    }
}
